@echo off

echo we will pack all python code into windows exe file. it will cost 3 or 4 minutes.
echo noconsole means no console, otherwise windows will show the black window.
echo cd /d E:\pythonProject\WowAid
echo cd /d E:/pythonProject/WowAid
conda activate wowddyy3.9
echo conda activate wowddyy3.9
echo taskkill
taskkill /f /im openLabWowMain.exe
ping -n 3 127.0.0.1 >nul
echo pyinstaller
pyinstaller -D openLabWowMain.py --noconsole --noconfirm --add-data="util\configuration.ini;util" --add-data="util\logging.conf;util"
echo xcopy
echo xcopy E:\pythonProject\WowAid\util E:\pythonProject\WowAid\dist\openLabWowMain\util /s/c/i
echo pyinstaller yehaibo.spec
echo pack exe file successfully! press any key to exit.
pause